package com.example.entity;

import java.time.LocalDate;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author syj
 * @since 2024-04-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class PsUser implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("userCode")
    private String usercode;

    @TableField("userName")
    private String username;

    @TableField("userPassword")
    private String userpassword;

    private String sex;

    /**
     * 年龄
     */
    private Integer age;

    /**
     * 入职日期
     */
    @TableField("entryDate")
    private LocalDate entrydate;

    /**
     * 离职日期
     */
    @TableField("dimissionDate")
    private LocalDate dimissiondate;

    @TableField("phoneTel")
    private String phonetel;

    private String email;

    /**
     * 注册时间
     */
    @TableField("creationTime")
    private LocalDateTime creationtime;

    /**
     * 最后登录时间
     */
    @TableField("lastLoginTime")
    private LocalDateTime lastlogintime;

    @TableField("createdBy")
    private String createdby;

    /**
     * 最后修改时间
     */
    @TableField("lastUpdateTime")
    private LocalDateTime lastupdatetime;

    /**
     * 使用状态1为正常0为冻结
     */
    @TableField("userStatus")
    private Integer userstatus;

    /**
     * 所属角色
     */
    @TableField("roleId")
    private Long roleid;

    @TableField(exist = false)
    private String rolename;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUsercode() {
        return usercode;
    }

    public void setUsercode(String usercode) {
        this.usercode = usercode;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getUserpassword() {
        return userpassword;
    }

    public void setUserpassword(String userpassword) {
        this.userpassword = userpassword;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public LocalDate getEntrydate() {
        return entrydate;
    }

    public void setEntrydate(LocalDate entrydate) {
        this.entrydate = entrydate;
    }

    public LocalDate getDimissiondate() {
        return dimissiondate;
    }

    public void setDimissiondate(LocalDate dimissiondate) {
        this.dimissiondate = dimissiondate;
    }

    public String getPhonetel() {
        return phonetel;
    }

    public void setPhonetel(String phonetel) {
        this.phonetel = phonetel;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public LocalDateTime getCreationtime() {
        return creationtime;
    }

    public void setCreationtime(LocalDateTime creationtime) {
        this.creationtime = creationtime;
    }

    public LocalDateTime getLastlogintime() {
        return lastlogintime;
    }

    public void setLastlogintime(LocalDateTime lastlogintime) {
        this.lastlogintime = lastlogintime;
    }

    public String getCreatedby() {
        return createdby;
    }

    public void setCreatedby(String createdby) {
        this.createdby = createdby;
    }

    public LocalDateTime getLastupdatetime() {
        return lastupdatetime;
    }

    public void setLastupdatetime(LocalDateTime lastupdatetime) {
        this.lastupdatetime = lastupdatetime;
    }

    public Integer getUserstatus() {
        return userstatus;
    }

    public void setUserstatus(Integer userstatus) {
        this.userstatus = userstatus;
    }

    public Long getRoleid() {
        return roleid;
    }

    public void setRoleid(Long roleid) {
        this.roleid = roleid;
    }

    public String getRolename() {
        return rolename;
    }

    public void setRolename(String rolename) {
        this.rolename = rolename;
    }
}
